﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using System.ComponentModel.DataAnnotations;

namespace Windvoice.Albums
{
    [ActiveRecord("Album")]
    public partial class Album : ActiveRecordBase<Album>
    {
        [PrimaryKey(PrimaryKeyType.Identity, "ID")]
        public int ID
        {
            get;
            set;
        }

        [Display(Name = "相册名称")]
        [Required]
        [Property]
        public string AlbumName
        {
            get;
            set;
        }

        [Property]
        public int FacePhoto
        {
            get;
            set;
        }

        [Display(Name="描述")]
        [Property]
        public string Description
        {
            get;
            set;
        }

        [Property]
        public DateTime CreateTime
        {
            get;
            set;
        }
    }
}
